A General Software Readability Model
نویسنده
چکیده
We present a generalizable formal model of software readability based on a human study of 5000 participants. Readability is fundamental to maintenance, but remains poorly understood. Previous models focused on symbol counts of small code snippets. By contrast, we approach code as read on screens by humans and propose to analyze visual, spatial and linguistic features, including structural patterns, sizes of code blocks, and verbal identifier content. We construct a readability metric based on these notions and show that it agrees with human judgments as well as they agree with each other and better than previous work. We identify universal features of readability and languageor experience-specific ones. Our metric also correlates with an external notion of defect density. We address multiple programming languages and different length samples, and evaluate using an order of magnitude more participants than previous work, all suggesting our model is more likely to generalize.
منابع مشابه
Simplified Readability Metrics
This paper describes a new approach to measuring the complexity of software systems with considering their readability. Readability Metrics were proposed by Chung and Yung [8] in 1990. Readability Metrics have been outstanding among the existing software complexity metrics for taking nonphysical software attributes, like readability, into considerations. The applications of Readability Metrics ...
متن کاملA Business Classifier to Detect Readability Metrics on Software Games and Their Types
Readability metric is considered to be one of the most important factors that may affect games business in terms of evaluating games’ quality in general and usability in particular. As games may go through many evolutions and developed by many developers, code readability can significantly impact the time and resources required to build, update or maintain such games. This paper introduces a ne...
متن کاملThe Role of Method Chains and Comments in Software Readability and Comprehension - An Experiment
Software readability and comprehension are important factors in software maintenance. There is a large body of research on software measurement, but the actual factors that make software easier to read or easier to comprehend are not well understood. In the present study, we investigate the role of method chains and code comments in software readability and comprehension. Our analysis comprises...
متن کاملOrigins of poor code readability
The topic of source code readability has paramount importance in software engineering. Literature exists on how to write readable code; how to create analytical models and automatically predict readability; and how readability influences software cost and eventually the economy. In this article we follow a different path; we explore the question of why and how unreadable code gets written. Moti...
متن کاملAn Integrated Approach for Measuring Software Quality and Code Readability
In this paper, we explore the concept of code readability and investigate its relation to software quality[1]. This is a new approach to measuring the complexity of software systems[2]. Software industry uses software metrics to measure the complexity of software systems for software cost estimation, software development control, software assurance, software testing, and software maintenance [3...
متن کامل